import React from "react"

//讲解props
export default class MyNav extends React.Component{
   
    render(){
        const {name,sex,age}=this.props;
        return (
            <div>
                <ul>
                    <li>姓名:{name}</li>
                    <li>性别:{sex}</li>
                    <li>年龄:{age}</li>
                </ul>
                <hr/>
            </div>
        )
    }
}